<template>
  <div>
    1
    <div class="data-container">
      <div class="data-top">1</div>
      <div class="data-info">
        2
        <div class="data-item" v-for="(item, index) in leftList" :key="index">
          {{ item.name }}
        </div>
        <div class="data-item">数据</div>
      </div>
      <div class="data-footer">分页</div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      leftList: [
        {
          name: "数据1",
        },
        {
          name: "数据1",
        },
        {
          name: "数据1",
        },
        {
          name: "数据1",
        },
        {
          name: "数据1",
        },
        {
          name: "数据1",
        },
        {
          name: "数据1",
        },
      ],
    };
  },
};
</script>

<style scoped>
.data-container {
  height: 100%;
}
.data-top {
  height: 100px;
  width: 200px;
  background-color: #fff;
}

.data-info {
  height: 400px;
  width: 200px;
  background-color: rgb(18, 194, 27);
  overflow: auto;
}
@media screen and (min-height: 1280px) {
  .data-info {
    height: 800px;
    width: 200px;
    background-color: rgb(18, 194, 27);
    overflow: auto;
  }
}
@media screen and (min-height: 1500px) {
  .data-info {
    height: 1000px;
    width: 200px;
    background-color: rgb(18, 194, 27);
    overflow: auto;
  }
}
.data-footer {
  height: 100px;
  width: 200px;
  background-color: rgb(33, 194, 18);
  margin: 1px;
}
.data-item {
  height: 100px;
  width: 200px;
  background-color: rgb(194, 18, 77);
  margin: 1px;
}
</style>
